import { request } from '@/util/request.js'

const token = uni.getStorageSync('token')

export function list(platform) {
  return request.post('/platform/list', platform)
}

export function add(platform) {
  return request.post('/platform/add', platform)
}

export function updatePlatform(platform) {  // 修改函数名
  return request.post('/platform/update', platform)
}

export function deletePlatform(platform) {  // 修改函数名，避免使用保留字
  return request.post('/platform/delete', platform)
}

export function selectOne(platform) {
  return request.post('/platform/selectOne', platform)  // 修正了拼写错误(servcie→request)
}